package com.shop.login.dao;

import com.shop.login.entiyy.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface WYWUserMapper {

    /**
     * 用户登录
     * @param account   账号
     * @param password  密码
     * @return
     */
    Integer selectLogin(@Param(value = "account") String account,@Param(value = "password") String password);

    /**
     * 添加用户
     * @param user  用户类
     * @return
     */
    Integer insertUser(Users users);

    /**
     * 根据账号修改密码
     * @param user  用户类
     * @return
     */
    Integer updateUser(Users users);


}
